package com.itheima.controller;


import com.baomidou.mybatisplus.extension.api.R;
import com.itheima.common.ResultData;
import com.itheima.domain.UmsMemberLevel;
import com.itheima.manager.UmsMemberLevelManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 会员等级表 前端控制器
 * </p>
 *
 * @author zhuguo
 * @since 2022-11-10
 */
@RestController
@CrossOrigin(origins = "*")
public class UmsMemberLevelController {

    @Autowired
    private UmsMemberLevelManager umsMemberLevelManager;


    @GetMapping("/memberLevel/list")
    public ResultData list(Integer defaultStatus) {
        List<UmsMemberLevel> list = umsMemberLevelManager.list(defaultStatus);
        return ResultData.ok(list,"");
    }
}

